<?php
/**
 * Created by PhpStorm.
 * User: godjarvis
 * Date: 2020/08/05
 * Time: 16:39
 */

namespace App\Model\Entity\DangKou;

use Fresh\Mvc\Model\Entity;
use Fresh\Annotation\EntitySetting;

/**
 * @EntitySetting(tableName="taosi_front_prop_value_rules", connection="dangkou")
 */
class TaosiFrontPropValueRules extends Entity
{
    const TYPE_OR = 0;//或
    const TYPE_AND = 1;//与
    const TYPE_NOT = 2;//非

    // 匹配目标，
    // 1属性（风格、体型、适用年龄、热门）
    // 2大分类 3商家 4品牌 5类目 6价格 7白菜价 8活动 9上架时间
    const TARGET_PROP = 1;
    const TARGET_TYPE = 2;
    const TARGET_MERCHANT = 3;
    const TARGET_BRAND = 4;
    const TARGET_CATEGORY = 5;
    const TARGET_PRICE = 6;
    const TARGET_SECKILL_PRICE = 7;
    const TARGET_PROMOTION = 8;
    const TARGET_SHELVE_DATE = 9;

    // 白菜价 0 不参与，1参与
    const SECKILL_OUT = 0;
    const SECKILL_JOIN = 1;
}
